package gatech.cs2340.adventuretime.servlets;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JList;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JScrollPane;


@SuppressWarnings("serial")
public class LookupScreen extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LookupScreen frame = new LookupScreen();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public LookupScreen() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 500);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblSearchFor = new JLabel("Search for:");
		lblSearchFor.setBounds(30, 12, 73, 16);
		contentPane.add(lblSearchFor);
		
		textField = new JTextField();
		textField.setBounds(121, 6, 252, 28);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblSelectPatientBelow = new JLabel("Select patient below:");
		lblSelectPatientBelow.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
		lblSelectPatientBelow.setBounds(170, 75, 108, 16);
		contentPane.add(lblSelectPatientBelow);
		
		JButton btnSearch = new JButton("Search");
		btnSearch.setBounds(161, 34, 117, 29);
		contentPane.add(btnSearch);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(30, 105, 387, 342);
		contentPane.add(scrollPane);
		
		JList list = new JList();
		scrollPane.setViewportView(list);
	}
}
